package com.bw.liveplay.common.mvvm.mondel

import com.bw.liveplay.common.entity.BaseEntity
import com.bw.liveplay.common.entity.FocusEntity
import com.bw.liveplay.common.network.Api
import com.bw.liveplay.common.utils.ApiService
import io.reactivex.Observable

/**
 * @author KK
 * @description:
 * @date :2021/11/15 9:04
 *
 */
class FocusModel : BaseModel() {

    fun requestFocus(offset : Int,
                     pageCount : Int,
                     tagId : Int,
                     tagType : String,
                     userId : Int) : Observable<BaseEntity>{

        var requestFocus = ApiService.instance()
            .getRetrofit()!!.create(Api::class.java)
            .requestFocus(offset, pageCount, tagId, tagType, userId)
        return changeFun(requestFocus)

    }
}